<div id="top-menu">
    <div id="top-menu1">
        <ul id="menu">
            <?php foreach($menus as $menu): ?>
                <?php $self = $menu['self']; ?>
            <li<?php echo (in_array($_module, split(',',$self['modules']))) ? ' class="active"' : '' ?>><a href="<?php echo $self['url'] ?>"><?php echo $self['title'] ?></a>
                    <?php if (!empty($menu['children'])): ?>
                <ul>
                            <?php foreach ($menu['children'] as $child): ?>
                    <li><a href="<?php echo $child['url'] ?>"><?php echo $child['title']; ?></a></li>
                            <?php endforeach; ?>
                </ul>
                    <?php endif; ?>
            </li>
            <?php endforeach; ?>
        </ul>
    </div>
    <div id="top-menu2">
        <a href="/video/upload" class="upload">Đăng video</a>
    </div>
    <div class="clearfloat"></div>
</div>